class Message < ActiveRecord::Base
  belongs_to :borrow_rec
  belongs_to :user, :class_name => "User", :foreign_key => "sender"
  belongs_to :user, :class_name => "User", :foreign_key => "receiver"

  validates_presence_of :type, :mtime
end
